//
//  NewspaperEditionViewController.m
//  wanbao
//  报纸的某一板块
//  Created by 马文涛 on 14-1-18.
//  Copyright (c) 2014年 Mondeo. All rights reserved.
//

#import "NewspaperEditionViewController.h"

@interface NewspaperEditionViewController ()
{
    CGRect newspaperRect;
}
@end

@implementation NewspaperEditionViewController

- (id)initWithNewspaperFrame:(CGRect)rect
{
    self = [super init];
    if (self) {
        memcpy(&newspaperRect, &rect, sizeof(rect));
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    // 底部导航
    float bottomHeight = 50;
    UIImageView *bottomView = [[UIImageView alloc] initWithFrame:CGRectMake(0, deviceHeight-  bottomHeight, deviceWidth, bottomHeight)];
    bottomView.userInteractionEnabled = YES;
    bottomView.image = [UIImage imageNamed:@"button"];
    [self.view addSubview:bottomView];
    
    // 返回按钮
    UIButton *backBtn = [[UIButton alloc] initWithFrame:CGRectMake(20, 15, 24, 17)];
    [backBtn setImage:[UIImage imageNamed:@"back"] forState:UIControlStateNormal];
    [backBtn addTarget:self action:@selector(backFun) forControlEvents:UIControlEventTouchUpInside];
    [bottomView addSubview:backBtn];
}

- (void)backFun
{
    [self.navigationController popViewControllerAnimated:YES];
}

// 重写父类方法，达到覆盖目的嘿嘿
- (void)viewWillAppear:(BOOL)animated
{
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
